#include "widget.h"

#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString style="";
    //子控件选择器
    style += "QComboBox::down-arrow {image: url(:/chicken.png);}";
    style += "QProgressBar::chunk {background-color:blue;}";
    style += "QProgressBar::text {color:red;}";

    a.setStyleSheet(style);

    Widget w;
    w.show();
    return a.exec();
}
